/**
 * 
 */
package com.eagle.coders.common.container;

import java.util.Collection;
import java.util.SortedMap;
import java.util.TreeMap;

import com.eagle.coders.common.ui.component.IUseCasesContainer;
import com.eagle.coders.core.component.utils.LookupServiceUtils;





/**
 * @author Anees
 *
 */
public class ContainerRenderer {
	
	public ContainerRenderer(){
		
	}
	
	/**
	 * 
	 * @return
	 */
	public SortedMap<Integer, IUseCasesContainer> buildUsecaseContainers(){
		SortedMap<Integer, IUseCasesContainer> usecaseMap = new TreeMap<Integer, IUseCasesContainer>();
		Collection<IUseCasesContainer> containerCollection = LookupServiceUtils.lookup(IUseCasesContainer.class);
		for(IUseCasesContainer container : containerCollection){
			usecaseMap.put(container.getContainerPosiion(), container);
		}
		return usecaseMap;
	}

}
